/**
 * 个人中心
 */
var publicUtils=require("script/localStorageManagers.js");
var DownloadUtil = require('scripts/Core/DownLoadUtil.js');
mui.init({
	swipeBack: true
});
//加载plusReady
if (window.plus) {
	plusReady();
} else {
	document.addEventListener("plusready", plusReady, false);
}
function plusReady(){
	//滚动条
	mui('.mui-scroll-wrapper').scroll({
					indicators: false //是否显示滚动条
				});
	//打开自学课程
	mui('.list').on('tap','.selfstudycourse',openSelfstudyCourse);
	//打开班级研讨
	mui('.list').on('tap','.classdiscuss',openClassDiscuss);
	//在线提问
	mui('.list').on('tap','.onlinequestion',openQuestion);
	//学习笔记
	mui('.list').on('tap','.studynote',openStudyNote);
	//随堂检测
	mui('.list').on('tap','.classroomtest',openClassroomtest);
	//我的作业
	mui('.list').on('tap','.task',openTaskindex);
};
//打开自学课程
function openSelfstudyCourse(){
	mui.openWindow({
		url:'selfstudycourse/studycourseindex.html',
		id:'selfcenter/selfstudycourse/studycourseindex',
		styles:getStyles(),
		waiting:{
         autoShow:false//自动显示等待框，默认为true
        },
	});
}
//打开班级研讨
function openClassDiscuss(){
	mui.openWindow({
		url:'classdiscuss/discussindex.html',
		id:'selfcenter/classdiscuss/discussindex',
		styles:getStyles(),
		waiting:{
         autoShow:false//自动显示等待框，默认为true
        }
	});
}
//在线提问
function openQuestion(){
	mui.openWindow({
		url:'question/questionindex.html',
		id:'selfcenter/question/questionindex',
		styles:getStyles(),
		waiting:{
         autoShow:false//自动显示等待框，默认为true
        }
	});
}
//学习笔记
function openStudyNote(){
	mui.openWindow({
		url:'note/noteindex.html',
		id:'selfcenter/note/noteindex',
		styles:getStyles(),
		waiting:{
         autoShow:false//自动显示等待框，默认为true
        }
	});
};
//随堂检测
function openClassroomtest(){
	mui.openWindow({
		url:'classroomtest/testindex.html',
		id:'selfcenter/classroomtest/testindex',
		styles:getStyles(),
		waiting:{
         autoShow:false//自动显示等待框，默认为true
        }
	});
};
//我的作业
function openTaskindex(){
	mui.openWindow({
		url:'task/taskindex.html',
		id:'selfcenter/task/taskindex',
		styles:getStyles(),
		waiting:{
         autoShow:false//自动显示等待框，默认为true
        }
	});
}
